/*******************************************************************************
 * This file is part of blueprint4j www.blueprint4j.org.
 * 
 *     blueprint4j is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     blueprint4j is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 * 
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with blueprint4j. If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
package blueprint4j.db;

import blueprint4j.Constants;

public class FieldGroupCompany extends FieldGroup {
	public FieldGroup contact;
	public FieldString name;
	public FieldString tradename;
	public FieldString regnumber;
	public FieldString vat;
	public FieldString phone;
	public FieldString fax;
	public FieldString web;

	public FieldGroupCompany(String name,String prefix,Entity entity) {
		super(name,Constants.ICON_BASE+"apps/agt_internet.png",entity);
		if (prefix==null){
			prefix="";
		}
		if (prefix.length()>0){
			prefix=prefix+"_";
		}
		this.name = new FieldString(prefix+"name", Field.FIELD_NAME, "Name", 60,entity);
		tradename = new FieldString(prefix+"tradename", Field.FIELD_NAME, "Trading Name", 60,entity);
		regnumber = new FieldString(prefix+"regnumber", 0, "Co Reg Number", 25,entity);
		vat = new FieldString(prefix+"vat", 0, "Vat Number", 25,entity);
		phone = new FieldString(prefix+"phone", 0, "Phone", 20,entity);
		fax = new FieldString(prefix+"fax", 0, "Fax", 20,entity);
		web = new FieldString(prefix+"web", 0, "Web", 30,entity);
	}
}

